package com.rtx.wms.std.asn.service;

import java.util.List;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.rtx.edi.model.api.bo.ApiMappingInfoBo;
import com.rtx.wms.std.asn.bean.Receipt;
import com.rtx.wms.std.asn.bean.Receiptdetail;

public interface ReceiptService {
    /**
     * 新增入库单
     * @param whseid
     * @param orders
     */
    void addReceipt(String whseid, Receipt receipt,ApiMappingInfoBo bo);

    /**
     * 查询入库单
     * @param whseid
     * @param wrapper
     * @return
     */
    List<Receipt> selectReceiptByWrapper(String whseid, Wrapper<Receipt> wrapper);

    /**
     * 更新入库单
     * @param whseid
     * @param wrapper
     */
    void updateByWrapper(String whseid, LambdaUpdateWrapper<Receipt> wrapper);

    
    
	void handlerExistsReceipt(String whseid, String externreceiptkey);
	
	
    public void receiptCancel(String whseid, String externreceiptkey);
    
    /**
     * 查询入库单
     * @param whseid
     * @param wrapper
     * @return
     */
    List<Receiptdetail> selectReceiptDetailByWrapper(String whseid, Wrapper<Receiptdetail> wrapper);
    
    /**
     * 查询入库单
     * @param whseid
     * @param wrapper
     * @return
     */
    String selectReceiptStatusByWrapper(String whseid, String receiptkey);
    
    void updateDetailStatusByWrapper(String whseid, Receipt receipt);
}
